Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Function |capture

regex::|capture


Usage

|capture(text, regex)

Parameters

↳ text: string
↳ regex: string

Return

Option<StringMap>


Captures groups of text according to a regex.

If match, return a StringMap containing the captured named groups.

The regex syntax is Unicode-aware. Please refer to Regex Syntax in documentation for full syntax description.